# -*- encoding: utf-8 -*-
from shapely.wkt import loads as wkt_loads
import dsl
from . import FixtureTest


class LanduseScree(FixtureTest):
    def test_scree(self):
        self.generate_fixtures(dsl.way(59621863, wkt_loads('POLYGON ((-122.422203271733 37.8256031759825, -122.422104546884 37.825699463513, -122.421981837016 37.82570066976718, -122.421917787136 37.82569336128559, -122.421715576366 37.82558621744349, -122.421659341829 37.8256532001021, -122.421610742972 37.82562999742961, -122.421620714272 37.82558245676278, -122.421467910842 37.8255002184326, -122.421423893393 37.82543195842029, -122.421466383706 37.82534908131419, -122.421556664392 37.8252947995975, -122.421727164633 37.8252886973367, -122.421871523899 37.82537221311858, -122.422190246162 37.82555506764839, -122.422203271733 37.8256031759825))'), {u'way_area': u'2965.44', u'source': u'openstreetmap.org', u'historic': u'ruins', u'natural': u'scree', u'name': u'Rubble Pile'}))  # noqa

        self.assert_has_feature(
            16, 10481, 25319, 'landuse',
            {'kind': 'scree'})
